{% extends "base.html" %}

{% macro report_group(slug, name) %}
<div class="metric card_detail">
<h2>{{ name }}</h2>

<div class="content">


<ul>
    <li>
        <a href="/reports/{{ slug }}/done/1/">Done</a> / <a href="/reports/{{ slug }}/done/6/">6</a> / <a href="/reports/{{ slug }}/done/9/">9</a> / <a href="/reports/{{ slug }}/done/12/">12</a>
    </li>

    <li>
        <a href="/reports/{{ slug }}/throughput/1/">Throughput</a> / <a href="/reports/{{ slug }}/throughput/6/">6</a> / <a href="/reports/{{ slug }}/throughput/9/">9</a> / <a href="/reports/{{ slug }}/throughput/12/">12</a>
    </li>

    <li>
        <a href="/reports/{{ slug }}/flow/detail/1/">Detailed Cumulative Flow</a> / <a href="/reports/{{ slug }}/flow/detail/6/">6</a> / <a href="/reports/{{ slug }}/flow/detail/9">9</a> / <a href="/reports/{{ slug }}/flow/detail/12">12</a>
    </li>


    <li>
        <a href="/reports/{{ slug }}/efficiency/1/">Workflow Efficiency</a> / <a href="/reports/{{ slug }}/efficiency/6/">6</a> / <a href="/reports/{{ slug }}/efficiency/9">9</a> / <a href="/reports/{{ slug }}/efficiency/12">12</a>
    </li>

    <li>
        <a href="/reports/{{ slug }}/cycle/distribution/all/1/">Cycle Time Distribution: all</a> / <a href="/reports/{{ slug }}/cycle/distribution/all/6/">6</a> / <a href="/reports/{{ slug }}/cycle/distribution/all/9/">9</a> / <a href="/reports/{{ slug }}/cycle/distribution/all/12/">12</a>
    </li>

    <li>
        <a href="/reports/{{ slug }}/cycle/distribution/1/">Cycle Time Distribution: cards</a> / <a href="/reports/{{ slug }}/cycle/distribution/6/">6</a> / <a href="/reports/{{ slug }}/cycle/distribution/9/">9</a> / <a href="/reports/{{ slug }}/cycle/distribution/12/">12</a>
    </li>


    <li>
        <a href="/reports/{{ slug }}/service-class/">Service class</a> / <a href="/reports/{{ slug }}/service-class/3">3</a> / <a href="/reports/{{ slug }}/service-class/6">6</a> / <a href="/reports/{{ slug }}/service-class/6">9</a> / <a href="/reports/{{ slug }}/service-class/12">12</a>
    </li>

    <li>
        <a href="/reports/{{ slug }}/leaderboard/1/">Developer leaderboard</a> / <a href="/reports/{{ slug }}/leaderboard/6">6</a> / <a href="/reports/{{ slug }}/leaderboard/6">9</a> / <a href="/reports/{{ slug }}/leaderboard/12">12</a>
    </li>


    <li>
        <a href="/reports/{{ slug }}/assignee/">Assignee breakdown</a>
    </li>

    <li>
        <a href="/reports/{{ slug }}/cycle/1/">Cycle Time History</a> / <a href="/reports/{{ slug }}/cycle/6/">6</a> / <a href="/reports/{{ slug }}/cycle/9/">9</a> / <a href="/reports/{{ slug }}/cycle/12/">12</a>
    </li>

</ul>
</div></div>
{% endmacro %}

{% block content %}

{{ report_group(all[0], all[1]) }}

{% for group in report_groups %}
{{ report_group(group[0], group[1]) }}
{% endfor %}


{% endblock content %}